﻿<%@ Page Title="Log in" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Login.aspx.vb" Inherits="webfinancegdrassign4.Login" Async="true" %>
 <%--Smart Money Saver -  Project for University of Herts--%>
 <%--Date: 08 Jan 2014--%>   
 <%--Version 1--%>
 <%--Project Brief Description - This is a Smart Money Saver asp.net product using VB.net. It is intended to be used by Smart Money Savers  who want to make and save money and earn a certain amount for themselves--%>
 <%--Program Brief Description - This is the about site program file. It gives you basic text information about what this site is about. --%>

<%-- New Code - login.aspx.vb - 12 Jan 2014 - Gene Da Rocha - Redirecting Admin users to one screen and ordinary users to another. --%>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <div class="hero-unit" style="line-height:15px;padding:20px">
    <hgroup class="title" style="margin-left :25%">
        <h1>&nbsp;</h1>
        <h2><%: Title %>.</h2>
    </hgroup>

    <div class="row-fluid">
        <div class="span6" style="margin-left :25%">
            <section id="loginForm">
                <p class="text-error">
                    <asp:Literal runat="server" ID="FailureText" />
                </p>

                <fieldset class="form-horizontal" ><asp:Label ID="lblerror" ForeColor="Red" Text="Password/User Name is incorrect - Retry again ..." runat="server" Font-Size="Smaller" Visible="false" ></asp:Label>
                    <legend style="margin-bottom:0px">Use a local account to log in.</legend> 
                    <div class="control-group" style="margin-bottom:0px">
                        <asp:Label ID="Label1" runat="server" AssociatedControlID="UserName" CssClass="control-label">User name</asp:Label>
                         <div class="controls">
                            <asp:TextBox runat="server" ID="UserName"  DefaultValue=null CssClass ="textbox" />
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Username" CssClass="text-error" ErrorMessage="The username field is required." />
                         </div>
                    </div>
                    <div class="control-group" style="margin-bottom:0px">
                        <asp:Label ID="Label2" runat="server" AssociatedControlID="Password" CssClass="control-label">Password</asp:Label>
                        <div class="controls">
                            <asp:TextBox runat="server" ID="Password" DefaultValue=null TextMode="Password" CssClass ="textbox" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Password" CssClass="text-error" ErrorMessage="The password field is required." />
                        </div>
                    </div>
                    <div class="control-group" style ="margin-top: -40px;margin-bottom:0px">
                        <div class="controls">
                            <label class="checkbox" style="margin-top:35px;margin-left:-13px">
                                <asp:CheckBox runat="server" ID="RememberMe" style="width: 185px;margin-top:10px;" />
                                <asp:Label ID="Label3" runat="server" AssociatedControlID="RememberMe" style="margin-left: -91px;display: inline">Remember me?</asp:Label>
                            </label>
                        </div>
                    </div>
                    <div class="form-actions no-color" style ="margin-top: -14px;">
                        <asp:Button ID="Button1" runat="server" OnClick="LogIn" Text="Log in" CssClass="button" />
                    </div>
                </fieldset>
                <p style ="text-align: center;margin-left: 59px;">
                    <asp:HyperLink runat="server" ID="RegisterHyperLink" ViewStateMode="Disabled" NavigateUrl="~/Account/Register.aspx">Register</asp:HyperLink>
                    if you don't have a local account.
                </p>
            </section>
        </div>

        <div class="span6">
            <section id="socialLoginForm">
            </section>
        </div>
    </div>
    </div> 
</asp:Content>

